package musicstore.entity;

import java.util.ArrayList;
import java.util.List;

public class ShoppingCart {
	private List<CartItem> items = new ArrayList<CartItem>();

	public List<CartItem> getItems() {
		return items;
	}
	
	public double getTotalPrice(){
		double sum = 0;
		for(CartItem i: this.items){
			sum+= i.getSubTotal();
		}
		return sum; 
	}
	
}
